﻿
using BankerenClient.Events;
using Caliburn.Micro;
namespace BankerenClient
{
    public class MainMenuViewModel : Screen, IMainScreen
    {
        #region Ctor

        public MainMenuViewModel()
        {
            this.DisplayName = "Main Menu";
        }

        #endregion

        #region Methods

        public void HostGame()
        {
            EventAggregationProvider.EventAggregator.Publish<BankerenEvent>(new BankerenEvent(BankerenEventType.GotoHostGame));
        }

        public void JoinGame()
        {
            EventAggregationProvider.EventAggregator.Publish<BankerenEvent>(new BankerenEvent(BankerenEventType.GotoJoinGame));
        }

        public void Quit()
        {
            EventAggregationProvider.EventAggregator.Publish<BankerenEvent>(new BankerenEvent(BankerenEventType.Quit));
        }

        #endregion
    }
}
